package org.example.io.handler.client;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;
import org.example.io.protocol.packet.MessageResponsePacket;

@Slf4j
public class MessageResponsePacketHandler extends SimpleChannelInboundHandler<MessageResponsePacket> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, MessageResponsePacket msg) throws Exception {
        log.info("发送人：{}, 消息内容：{}", msg.getFromUsername(), msg.getMessage());
    }
}
